package cn.stylefeng.guns.sys.modular.communityInfo.mapper;

import cn.stylefeng.guns.sys.modular.communityInfo.entity.SqInfo;
import cn.stylefeng.guns.sys.modular.communityInfo.model.params.SqInfoParam;
import cn.stylefeng.guns.sys.modular.communityInfo.model.result.SqInfoResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 社区表 Mapper 接口
 * </p>
 *
 * @author WangZhen
 * @since 2021-01-20
 */
public interface SqInfoMapper extends BaseMapper<SqInfo> {

    /**
     * 获取列表
     *
     * @author WangZhen
     * @Date 2021-01-20
     */
    List<SqInfoResult> customList(@Param("paramCondition") SqInfoParam paramCondition);

    /**
     * 获取map列表
     *
     * @author WangZhen
     * @Date 2021-01-20
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") SqInfoParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author WangZhen
     * @Date 2021-01-20
     */
    Page<SqInfoResult> customPageList(@Param("page") Page page, @Param("paramCondition") SqInfoParam paramCondition);

    /**
     * 插入数据
     */

    void insertCommunity(@Param("paramCondition") SqInfoParam paramCondition);


    /**
     * 删除接口
     *
     * @param paramCondition
     * @return
     */
    Integer selectDelete(@Param("paramCondition") Integer paramCondition);


    /**
     * 逻辑删除
     *
     * @param paramCondition
     */
    void updateDelete(@Param("paramCondition") Integer paramCondition);


    /**
     * 修改
     *
     * @param paramCondition
     */
    void updateCommunity(@Param("paramCondition") SqInfoParam paramCondition);

}
